<?php
/**
 * Created by PhpStorm.
 * User: an
 * Date: 2015/8/13
 * Time: 15:20
 * editor : zhouzhou
 */
namespace app\admin\model;
use think\model\Relation;

class FreightTemplate extends Relation{
 	// use \traits\model\Auto;
 	// use \traits\model\Relation;
  protected $link = [
		'FreightAddress' => [
		   'mapping_type'  => HAS_MANY,
		   'class_name'    => 'FreightAddress',
		   'foreign_key'   => 'template_id',
		   'mapping_key'   => 'id',
		   'mapping_name'  => 'freightAddress',
		  // 'mapping_order' => 'id desc',
		],
  ];
}